<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../inc/taglib.jsp"%>
<div class="pageContent">
	<form method="post" action="${requestScope.record ==null ?'system/organization/insert' :'system/organization/update' }" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<!-- 隐藏表单 -->
		<c:if test="${requestScope.record !=null}">
			<input type="hidden" name="id" value="${requestScope.record.id}" />
		</c:if>
		<!-- 隐藏等级 -->
		<input type="hidden" name="level" value="2" />
		<div class="pageFormContent" layoutH="57">
			<dl class="nowrap">
				<dt>父组织机构：</dt>
				
				<dd>
					<select name="pid">
						<c:forEach items="${requestScope.parents }" var="parent">
							
							<option value="${parent.id }" ${parent.id==requestScope.record.pid?'selected':'' }>${parent.name}</option>
						
						</c:forEach>
					</select>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>组织机构名称：</dt>
				<dd>
					<input name="name" value="${requestScope.record.name }" type="text" size="30" class="required" maxlength="50" />
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>排序：</dt>
				<dd>
					<input name="sort" value="${requestScope.record.sort }" type="text" size="30" class="required" maxlength="10" />
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>备注：</dt>
				<dd>
					<textarea cols="45" rows="5" name="remarks">${requestScope.record.remarks }</textarea>
				</dd>
			</dl>
			<div class="divider"></div>
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>

	</form>
</div>

